export default {
  namespaced: true,
  state: {
    dialogVisible: false,
    name: localStorage.getItem("name") || "",
    token: localStorage.getItem("token") || "",
  },
  mutations: {
    GET_DIALOG(state, dialogVisible) {
      state.dialogVisible = dialogVisible;
    },
    GET_USER_INFO(state, data) {
      state.name = data.name;
      state.token = data.token;
    },
  },
  actions: {},
};
